<template>
  <!-- 应用根容器，所有页面都会渲染到这里 -->
  <view class="app-container">
    <!-- 路由出口：根据当前路由渲染对应的页面 -->
    <router-view/>
  </view>
</template>

<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
onLaunch(() => {
  console.log("App Launch");
});
onShow(() => {
  console.log("App Show");
});
onHide(() => {
  console.log("App Hide");
});
</script>

<style>
/* 全局样式 */
.app-container {
  min-height: 100px;
}
</style>
